<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../jquery/jquery-3.6.0.js"></script>
    <script src="../../../wheels/data_utils/math_util.js"></script>
    <script src="../../../wheels/page_utils/anim_util.js"></script>
    <script src="./firework_nightsky.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .nightsky {
            width: 450px;
            height: 300px;
            background-color: #333;
            border: 10px solid hotpink;
            margin: 30px auto;
            position: relative;
        }

        .fire {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: absolute;
            left: 0;
            bottom: 0;
        }
    </style>
</head>

<body>
    <div class="nightsky"></div>
    <br>
    <div class="nightsky"></div>

    <script>
        document.querySelectorAll(".nightsky").forEach(
            ns => new FireworkNightsky(ns)
        )

    </script>
</body>

</html>